<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/web/header.jsp" %>
<title>Insert title here</title>
</head>
<body>
<fieldset class="layui-elem-field" style='margin:20px;padding:20px'>
  <legend>信息维护</legend>
  <div class="layui-field-box">
   	<form class="layui-form layui-form-pane" lay-filter='formA'>
	  <div class="layui-form-item">
	    <label class="layui-form-label">编号</label>
	    <div class="layui-input-inline">
	      <input type="text" name="code" required  lay-verify="required" 
	      readonly autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">密码</label>
	    <div class="layui-input-inline">
	      <input type="password" name="psd" required lay-verify="required" 
	      placeholder="请输入密码" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  
	  <div class="layui-form-item">
	    <div class="layui-input-inline">
		  <input type="button" class="layui-btn" lay-submit lay-filter="updpass" value="确定">		   
	      <input type="reset" class="layui-btn layui-btn-primary" value="重置" >
	    </div>
	    <input type="button" class="layui-btn" value="关闭" onclick="toClose()">
	  </div>
	  <input type="hidden" name="action" value="updpass"  />
	</form>
  </div>
</fieldset>

<script type="text/javascript">
var code='<%=request.getParameter("code") %>'
$("input[name='code']").val(code);

formOn("/employee",'submit(updpass)',"text",function(data){
// 	console.log(data)
	 if("1"==data){
		layer.msg("修改成功",toClose)
	}else{
		layer.msg("修改失败");
	}
})
</script>
</body>
</html>